<template>
	<view class="container">
		<!-- 用户信息 -->
		<view class="user-card">
			<view class="user-info">
				<image class="avatar" src="/static/avatar-default.png"></image>
				<view class="user-detail">
					<view class="username">坐啊 ∠</view>
					<view class="user-level">
						<text>积分: 7</text>
						<button class="upgrade-btn">升级VIP</button>
					</view>
					<view class="user-tags">
						<text class="tag">回答到</text>
						<text class="tag">意见卡</text>
						<text class="tag">已卖完</text>
					</view>
				</view>
			</view>
			<view class="balance-info">
				<text class="balance-label">¥</text>
				<text class="balance-amount">0.0</text>
				<text class="balance-tip">快去增加你的收入~</text>
				<text class="arrow">></text>
			</view>
		</view>
		
		<!-- 功能区域 -->
		<view class="function-area">
			<view class="function-row">
				<image class="function-icon" src="/static/icons/album.png"></image>
				<text>个人相册</text>
			</view>
			<view class="function-row">
				<image class="function-icon" src="/static/icons/team.png"></image>
				<text>推广团队</text>
			</view>
		</view>
		
		<!-- VIP提示卡片 -->
		<view class="vip-card">
			<view class="vip-title">分享群朋友圈就能获取VIP会员一个月</view>
			<view class="vip-desc">分享获得积分，积分可以兑换VIP会员一个月。积分可以用于：加群、发布资源、赠送他人。分享越多积分越多，每用户只能用积分兑换会员一个月，赶快分享邀请获取积分吧</view>
			<button class="vip-btn">分享免费领取会员</button>
		</view>
		
		<!-- 菜单列表 -->
		<view class="menu-list">
			<view class="menu-item">
				<image class="menu-icon" src="/static/icons/recharge.png"></image>
				<text>积分充值</text>
				<text class="quick-action">快速提升积分</text>
				<text class="arrow">></text>
			</view>
			<view class="menu-item">
				<image class="menu-icon" src="/static/icons/resource.png"></image>
				<text>资源订单</text>
				<text class="arrow">></text>
			</view>
			<view class="menu-item">
				<image class="menu-icon" src="/static/icons/my-resource.png"></image>
				<text>我的资源</text>
				<text class="arrow">></text>
			</view>
			<view class="menu-item">
				<image class="menu-icon" src="/static/icons/circle.png"></image>
				<text>我的圈子</text>
				<text class="arrow">></text>
			</view>
			<view class="menu-item">
				<image class="menu-icon" src="/static/icons/share.png"></image>
				<text>我的共享</text>
				<text class="arrow">></text>
			</view>
			<view class="menu-item">
				<image class="menu-icon" src="/static/icons/community.png"></image>
				<text>社群营销</text>
				<text class="arrow">></text>
			</view>
			<view class="menu-item">
				<image class="menu-icon" src="/static/icons/message.png"></image>
				<text>我的消息</text>
				<text class="arrow">></text>
			</view>
			<view class="menu-item">
				<image class="menu-icon" src="/static/icons/feedback.png"></image>
				<text>意见反馈</text>
				<text class="arrow">></text>
			</view>
			<view class="menu-item">
				<image class="menu-icon" src="/static/icons/contact.png"></image>
				<text>联系客服</text>
				<text class="arrow">></text>
			</view>
		</view>
	</view>
</template>

<style>
.container {
	background-color: #f5f5f5;
	min-height: 100vh;
}

.user-card {
	background: #fff;
	padding: 20px 15px;
}

.user-info {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
}

.avatar {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	margin-right: 15px;
}

.user-detail {
	flex: 1;
}

.username {
	font-size: 18px;
	font-weight: bold;
	margin-bottom: 8px;
}

.user-level {
	display: flex;
	align-items: center;
	margin-bottom: 8px;
	font-size: 14px;
	color: #666;
}

.upgrade-btn {
	margin-left: 15px;
	font-size: 12px;
	padding: 2px 10px;
	background: #007AFF;
	color: #fff;
	border-radius: 12px;
}

.user-tags {
	display: flex;
	gap: 10px;
}

.tag {
	font-size: 12px;
	color: #666;
	padding: 2px 8px;
	background: #f5f5f5;
	border-radius: 10px;
}

.balance-info {
	display: flex;
	align-items: center;
	padding: 10px 0;
	border-top: 1px solid #eee;
}

.balance-label {
	font-size: 14px;
	color: #666;
}

.balance-amount {
	font-size: 20px;
	font-weight: bold;
	margin: 0 5px;
}

.balance-tip {
	flex: 1;
	font-size: 12px;
	color: #999;
}

.function-area {
	display: flex;
	background: #fff;
	padding: 15px;
	margin: 10px 0;
}

.function-row {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.function-icon {
	width: 30px;
	height: 30px;
	margin-bottom: 5px;
}

.vip-card {
	margin: 10px 15px;
	background: #fff;
	padding: 15px;
	border-radius: 8px;
}

.vip-title {
	font-size: 14px;
	color: #333;
	margin-bottom: 10px;
}

.vip-desc {
	font-size: 12px;
	color: #666;
	line-height: 1.6;
	margin-bottom: 15px;
}

.vip-btn {
	background: #007AFF;
	color: #fff;
	font-size: 14px;
	padding: 8px;
	border-radius: 20px;
	text-align: center;
}

.menu-list {
	background: #fff;
}

.menu-item {
	display: flex;
	align-items: center;
	padding: 15px;
	border-bottom: 1px solid #eee;
}

.menu-icon {
	width: 20px;
	height: 20px;
	margin-right: 10px;
}

.menu-item text {
	font-size: 14px;
}

.quick-action {
	flex: 1;
	text-align: right;
	font-size: 12px;
	color: #999;
	margin-right: 10px;
}

.arrow {
	color: #999;
	margin-left: auto;
}
</style> 